<?php
/**
* $Id: add_thread.php 153 2010-05-05 22:22:48Z bwanglei $
* 发表新主题
*/

include_once(dirname(__FILE__).'/init.php');

if ($_SERVER['REQUEST_METHOD']=='POST') {
	$title_add = $_POST['title_article'];
	$content_add = $_POST['content_article'];
	$banmian_id = $_GET['tid'];
	$username = $_SESSION['username'];
	if (!isset($title_add) or !isset($content_add) or !isset($banmian_id) or !isset($username)) {
		apf_msg('出现问题，不能发表帖子'); die();
	}
	if (!apf_add_thread($title_add,$content_add,$banmian_id,$username)) apf_msg('添加帖子失败！');
}
include_once(TEMP_ROOT_PATH.'/add_thread.php');
?>
